﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Urbania.World;
using Microsoft.Xna.Framework;

namespace Urbania.Tiles
{
    public class Factory : Tile
    {

        // ( imageFilename, costMoney, costBureauc, rateIncome, rateHappiness, ratePollution, rateFood )
        // 400, 20, 10, -1, 5, 0

        public void Init()
        {
            Filename = "Factory";
            FrameRate = 5;
            RepeatFrameIndex = 0;
            Type = World.TileType.Buil_Factory;

            CostMoney = 400;
            CostBureauc = 15;
            RateIncome = 10;
            RateHappiness = -5f/12;
            RatePollution = 20f/12;
            RateFood = 0;

            this.InitAnimation(FrameRate, RepeatFrameIndex);
        }

        public Factory(int xIndex, int yIndex, float xPos, float yPos) : base(xIndex, yIndex, xPos, yPos)
        {
            this.Init();
        }

        public Factory(Tile t): base(t){
            this.Init();
        }




        //public override void Upgrade()
        //{

        //}

    }
}
